#include <stdio.h> 
#include <sys/types.h> 
#include <unistd.h>
int main()
{
  while (1)
  {
    printf("我是子进程process2,我的PID是%d,我的父进程PID是%d\n", getpid(), getppid());
    sleep(2);
  }
  return 0;
}
